<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo12"
	cellspacing="1">
    <col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}</td>
		
	</tr>
	<tr  class="li_2">
		<td >
		</td>
		<td align="center"><span class="color_red">*</span>规模（产量/吨）
		</td>
		<td align="center"><span class="color_red">*</span>产值（万元）
		</td>
		<td align="center"><span class="color_red">*</span>利润（万元）
		</td>
		<td align="center"><span class="color_red">*</span>税金（万元）
		</td>
		<td align="center"><span class="color_red">*</span>创汇（万美元）
		</td>
	</tr>
	<tr  class="li_1">
	    <td   align="center" >第一年
		</td>
		<td align="center">
			<input id="propepleh"  name="proposal/one_scale" label="${param.title}-->第一年-->规模" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/one_scale" />"/> 
		</td>
		<td align="center">
			<input id="propeplem"  name="proposal/one_output" label="${param.title}-->第一年-->产值" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/one_output" />"/> 
		</td>
		<td align="center">
			<input id="propeplel"  name="proposal/one_sail" label="${param.title}-->第一年-->利润" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/one_sail" />"/> 
		</td>
		<td align="center">
			<input id="propepleq"  name="proposal/one_tax" label="${param.title}-->第一年-->税金" type="text" required class="input_css required" style="width: 70%;text-align: right;"
			 onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/one_tax" />"/> 
		</td>
		<td align="center">
		    <input id="propeplew"  name="proposal/one_earn" label="${param.title}-->第一年-->创汇" type="text" required class="input_css required" style="width: 70%;text-align: right;"
			 onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/one_earn" />"/> 
		</td>
	</tr>
	<tr  class="li_2">
	<td   align="center" >第二年
		</td>
		<td align="center">
			<input id="propeplebs"  name="proposal/two_scale" label="${param.title}-->第二年-->规模" type="text" required 
			class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)" 
			value="<x:out select="$xmlData/data/proposal/two_scale" />"/> 
		</td >
		<td  align="center">
			<input id="propepless"  name="proposal/two_output" label="${param.title}-->第二年-->产值" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/two_output" />"/> 
		</td >
		<td align="center">
			<input id="propeplexs"  name="proposal/two_sail" label="${param.title}-->第二年-->利润" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/two_sail" />"/> 
		</td>
		<td align="center">
			<input id="propepleqt"  name="proposal/two_tax" label="${param.title}-->第二年-->税金" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/two_tax" />"/> 
		</td>
		<td align="center">
		    <input id="propeplews"  name="proposal/two_earn" label="${param.title}-->第二年-->创汇" type="text" required class="input_css required" style="width: 70%;text-align: right;"
			 onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/two_earn" />"/> 
		</td>
	</tr>
	<tr  class="li_1">
	<td   align="center" >第三年
		</td>
		<td align="center">
			<input id="propeplebs"  name="proposal/three_scale" label="${param.title}-->第三年-->规模" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/three_scale" />"/> 
		</td >
		<td  align="center">
			<input id="propepless"  name="proposal/three_output" label="${param.title}-->第三年-->产值" type="text" required class="input_css required" style="width: 70%;text-align: right;"
			 onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/three_output" />"/> 
		</td >
		<td align="center">
			<input id="propeplexs"  name="proposal/three_sail" label="${param.title}-->第三年-->利润" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/three_sail" />"/> 
		</td>
		<td align="center">
			<input id="propepleqt"  name="proposal/three_tax" label="${param.title}-->第三年-->税金" type="text" required class="input_css required" style="width: 70%;text-align: right;" 
			onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/three_tax" />"/> 
		</td>
		<td align="center">
		    <input id="propeplews"  name="proposal/three_earn" label="${param.title}-->第三年-->创汇" type="text" required class="input_css required" style="width: 70%;text-align: right;"
			 onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/proposal/three_earn" />"/> 
		</td>
	</tr>
</table> 
	<br/>
<script type="text/javascript">
function countFundInt(idStart, countStr, totalStr) {
	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = 0;
		count = parseInt(count) + parseInt(fund);
	}
	//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
	var totalStrArr = totalStr.split(",");
	var totalId;
	for(var i = 0;i < totalStrArr.length; i++ ) {
		totalId = totalStrArr[i];
	$("#" + idStart + totalId).val(count);
	}
}
</script>